package service;

import bean.pojo.GdArticle;
import bean.pojo.GdUserArticlelist;
import org.springframework.stereotype.Service;
import java.util.List;


@Service
public interface GdArticleService {

    int insert(GdArticle pojo);

    int insertList(List< GdArticle> pojos);

    List<GdArticle> select(GdArticle pojo);

    List<GdArticle> selectByCategory(String classify,
                                     Long categoryId);

    boolean updateViewNum(Long articleId) throws Exception;

    int update(GdArticle pojo);

    /**
     * 判断该文章是否已收藏
     * @param gdUserArticlelist
     * @return
     */
    boolean isFavorite(GdUserArticlelist gdUserArticlelist);

}
